package com.huluobo.a2203kotlinshopping.service

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.huluobo.a2203kotlinshopping.R
import com.hyphenate.easeui.modules.chat.EaseChatFragment


class ServiceActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_service)

        val chatFragment = EaseChatFragment()
        //pass parameters to chat fragment
        chatFragment.arguments = intent.extras
        supportFragmentManager.beginTransaction().add(R.id.container, chatFragment).commit()
    }
}